package cn.neusoft.mapper;

import cn.neusoft.domain.ReturnedInfo;
import cn.neusoft.domain.Supplier;
import cn.neusoft.query.BaseQuery;
import feign.Param;

import java.util.List;

public interface SupplierMapper {

    void add(Supplier supplier);

    void delete(String id);

    void update(Supplier supplier);

    List<Supplier> getAll();

    List<Supplier> getByName(String name);
    List<Supplier> getSuppliersByPage(@Param("start") int start, @Param("pageSize") int pageSize);

    int getTotalCount();

    List<Supplier> findByPage(BaseQuery query);

    List<ReturnedInfo> getReturnToSupplierInfo(BaseQuery query);

}